package net.guoyixian.common.datasource;

import net.guoyixian.common.datasource.DataSource.SourceType;

public class DynamicDataSourceHolder {
	public static final ThreadLocal<SourceType> holder = new ThreadLocal<SourceType>();
	
	public static SourceType getDataSouce(){
		return holder.get();
	}
	public static void putDataSource(SourceType name){
		holder.set(name);
	}
}
